package com.ytjj.qmyx.users.model;

import java.io.Serializable;
import java.util.Date;

public class UsersCard implements Serializable {
    /**
     * id
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 开发者微信号
     *
     * @mbg.generated
     */
    private String toUserName;

    /**
     * 领取方账号（OpenID）
     *
     * @mbg.generated
     */
    private String fromUserName;

    /**
     * 消息类型
     *
     * @mbg.generated
     */
    private String msgType;

    /**
     * 事件类型
     *
     * @mbg.generated
     */
    private String event;

    /**
     * 卡券id
     *
     * @mbg.generated
     */
    private String cardId;

    /**
     * code序列号
     *
     * @mbg.generated
     */
    private String userCardCode;

    /**
     * 领券用户的UnionId
     *
     * @mbg.generated
     */
    private String unionId;

    /**
     * 用户id
     *
     * @mbg.generated
     */
    private Integer userId;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 返回的json
     *
     * @mbg.generated
     */
    private String resultJson;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getToUserName() {
        return toUserName;
    }

    public void setToUserName(String toUserName) {
        this.toUserName = toUserName;
    }

    public String getFromUserName() {
        return fromUserName;
    }

    public void setFromUserName(String fromUserName) {
        this.fromUserName = fromUserName;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public String getEvent() {
        return event;
    }

    public void setEvent(String event) {
        this.event = event;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getUserCardCode() {
        return userCardCode;
    }

    public void setUserCardCode(String userCardCode) {
        this.userCardCode = userCardCode;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getResultJson() {
        return resultJson;
    }

    public void setResultJson(String resultJson) {
        this.resultJson = resultJson;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", toUserName=").append(toUserName);
        sb.append(", fromUserName=").append(fromUserName);
        sb.append(", msgType=").append(msgType);
        sb.append(", event=").append(event);
        sb.append(", cardId=").append(cardId);
        sb.append(", userCardCode=").append(userCardCode);
        sb.append(", unionId=").append(unionId);
        sb.append(", userId=").append(userId);
        sb.append(", createTime=").append(createTime);
        sb.append(", resultJson=").append(resultJson);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}